package demo3.jt;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Lazy;

@ComponentScan("demo3.jt")
@Configuration
public class Spring{
    @Lazy
    @Bean
      public Cat cat(){
        return new Cat();
      }
}
